<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['项目管理','预约维修[小程序]','反馈意见[司机]']" icon="fa fa-smile-o" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>反馈意见[司机]</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn" style="width: calc(100% - 230px);">

								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>

								<div class="top_module top_module_box">
                                    <span class="top_module_label module_text">回复状态</span>
                                    <select name="" class="top_module_select" [(ngModel)]="tableParam.state" >
                                        <option value="">全部</option>
                                        <option value="1">已回复</option>
                                        <option value="0">未回复</option>
                                    </select>
                                </div>
                                <!-- <div class="top_module top_module_box">
									<span class="top_module_label module_text">联系电话</span>
									<input class="module_inp" [(ngModel)]="tableParam.feedbackPhone" type="tel" placeholder="请输入联系电话"/>
								</div> -->
								
								<button class="btn btn-primary" (click)="tableSearch()">查询</button>
							</div>
							<div class="right top-search">
								<input type="text" [(ngModel)]="tableParam.searchKey" (change)="tableSearch()" class="search-input" placeholder="联系电话/姓名">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="tableSearch()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>小程序名称</th>
										<th>姓名</th>
										<th>昵称</th>
										<th>联系电话</th>
										<th>反馈图片</th>
										<th>反馈意见</th>
										<th>反馈时间</th>
										<th>回复内容</th>
										<th *ngIf="isShowDelete">操作</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData" >
										<td>{{row.appletsCode=='0004'?'随身修':'随你运'}}</td>
										<td>{{row.name}}</td>
										<td>{{row.nickName}}</td>
										<td>{{row.feedbackPhone}}</td>
										<td><button type="button" (click)="open_img(row,ImgModal)" *ngIf="row.imageInfo != null && row.imageInfo.length !=0">查看</button></td>
										<!-- 反馈意见 -->
										<td>
											{{row.suggestStr}}<button type="button" (click)="showMessage(row.suggest,'反馈意见',messageModal)" *ngIf="row.suggestBtn">查看</button>
										</td>
										<td>{{row.createTime}}</td>
										<td>
											{{row.replyContentStr}}<button type="button" (click)="showMessage(row.replyContent,'回复内容',messageModal)" *ngIf="row.replyBtn">查看</button>
										</td>
										<td *ngIf="isShowDelete">
											<button type="button" (click)="deleteRow(row)">删除</button>
											<button type="button" (click)="reply(row,itemModal)">回复</button>
                                        </td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
	<!-- 图片查看   弹窗-->
	<section bsModal #ImgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg" style="width: 1000px;">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" (click)="imgClose(ImgModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
					<h4 class="modal-title">图片</h4>
				</div>
				<div class="modal-body">
					<div class="row form-horizontal imagesInfo">
						<div class="imagesList" >
							<div *ngFor="let item of imgInfo" class="imagesList-cont">
								<div class="imgList">
									<div class="imgCont">
										<img class="imgSrc" [src]="item" alt="" (click)="bigimg(ImgBigModal,item)"/>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!-- 图片查看 弹窗end-->
	<!-- 图片放大查看   弹窗-->
	<section bsModal #ImgBigModal="bs-modal" class="modal fade imgView" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		<!-- <div class="closeImg" (click)="CloseBigImg(ImgBigModal)"></div> -->
		<div class="modal-content modal-imgContent" (click)="CloseBigImg(ImgBigModal)" >
			<img [src]="bigImg" />
		</div>
	</section>
	<!-- 图片放大查看 弹窗end-->
	<!-- 单项编辑   弹窗-->
	<section bsModal #itemModal="bs-modal"  class="modal fade" role="dialog" tabindex="-1" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" (click)="itemModalClose(itemModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
					<h4 class="modal-title">回复内容编辑</h4>
				</div>
				<div class="modal-body">
					<div class="row form-horizontal">
					    <div class="form-group col-xs-12">
							<label class="col-xs-3 control-label">回复内容：</label>
							<div class="col-xs-9">
								<textarea class="form-control" rows="2" type="text"  [(ngModel)]='replyContent'  placeholder="请输入回复内容"></textarea>
							</div>
                        </div>
					    
					</div>
				</div>
				<div class="modal-footer">
                    <button type="button" class="btn btn-default" (click)="itemModalClose(itemModal)">取消</button>
                    <button type="button" class="btn btn-primary" (click)="itemModalSubmit(itemModal)">确认</button>
                </div>
			</div>
		</div>
	</section>
	<!-- 单项编辑 弹窗end-->	

	<!-- 查看回复详情   弹窗-->
	<section bsModal #messageModal="bs-modal"  class="modal fade" role="dialog" tabindex="-1" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" (click)="itemModalClose(messageModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
					<h4 class="modal-title">{{title}}</h4>
				</div>
				<div class="modal-body">
					<div class="row form-horizontal">
						<div class="form-group col-xs-12" style='word-break: break-all;'>
							<span>{{content}}</span>
						</div>
					</div>
				</div>
				<!-- <div class="modal-footer">
					<button type="button" class="btn btn-default" (click)="itemModalClose(messageModal)">取消</button>
					<button type="button" class="btn btn-primary" (click)="itemModalSubmit(messageModal)">确认</button>
				</div> -->
			</div>
		</div>
	</section>
	<!-- 查看回复详情 弹窗end-->	
</div>